package com.lu.service.impl;

import com.lu.dao.TradelogDao;
import com.lu.dao.impl.TradelogDaoImpl;
import com.lu.pojo.Page;
import com.lu.pojo.Tradelog;
import com.lu.service.TradelogService;

import java.util.List;

public class TradelogServiceImpl implements TradelogService {
    TradelogDao tradelogDao = new TradelogDaoImpl();
    @Override
    public List<Tradelog> getAllTradelog() {
        return tradelogDao.getAllTradelog();
    }

    @Override
    public List<Tradelog> getSomeTradelogByPage(Page page) {
        return tradelogDao.getSomeTradelogByPage(page);
    }

    @Override
    public int getCountTradelog() {
        return tradelogDao.getCountTradelog();
    }

    @Override
    public int addOneTrade(Tradelog tradelog) {
        return tradelogDao.addOneTrade(tradelog);
    }
}
